package com.ruoyi.sys.vehile.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电桩对象 tb_charging_pile
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbChargingPile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电桩编号 */
    private Long cpId;

    /** 充电桩名称 */
    @Excel(name = "充电桩名称")
    private String cpName;

    /** 充电电压(单位：V) */
    @Excel(name = "充电电压(单位：V)")
    private Long cpVoltage;

    /** 充电功率（单位：w） */
    @Excel(name = "充电功率", readConverterExp = "单=位：w")
    private Long cpPower;

    /** 状态(0:空闲 1：占用 2：故障) */
    @Excel(name = "状态(0:空闲 1：占用 2：故障)")
    private Long cpState;

    /** 总时间（通过计算得出） */
    @Excel(name = "总时间", readConverterExp = "通=过计算得出")
    private String cpTotaltime;

    /** 维护人 */
    @Excel(name = "维护人")
    private String cpMaintenancepeople;

    public void setCpId(Long cpId)
    {
        this.cpId = cpId;
    }

    public Long getCpId()
    {
        return cpId;
    }
    public void setCpName(String cpName)
    {
        this.cpName = cpName;
    }

    public String getCpName()
    {
        return cpName;
    }
    public void setCpVoltage(Long cpVoltage)
    {
        this.cpVoltage = cpVoltage;
    }

    public Long getCpVoltage()
    {
        return cpVoltage;
    }
    public void setCpPower(Long cpPower)
    {
        this.cpPower = cpPower;
    }

    public Long getCpPower()
    {
        return cpPower;
    }
    public void setCpState(Long cpState)
    {
        this.cpState = cpState;
    }

    public Long getCpState()
    {
        return cpState;
    }
    public void setCpTotaltime(String cpTotaltime)
    {
        this.cpTotaltime = cpTotaltime;
    }

    public String getCpTotaltime()
    {
        return cpTotaltime;
    }
    public void setCpMaintenancepeople(String cpMaintenancepeople)
    {
        this.cpMaintenancepeople = cpMaintenancepeople;
    }

    public String getCpMaintenancepeople()
    {
        return cpMaintenancepeople;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cpId", getCpId())
            .append("cpName", getCpName())
            .append("cpVoltage", getCpVoltage())
            .append("cpPower", getCpPower())
            .append("cpState", getCpState())
            .append("cpTotaltime", getCpTotaltime())
            .append("cpMaintenancepeople", getCpMaintenancepeople())
            .toString();
    }
}
